3.5.53 \(\int x^{-1+n-p (1+q)} (a x^n+b x^p)^q \, dx\) [453]

Optimal. Leaf size=39 \[ \frac {x^{-p (1+q)} \left (a x^n+b x^p\right )^{1+q}}{a (n-p) (1+q)} \]

[Out]

(a*x^n+b*x^p)^(1+q)/a/(n-p)/(1+q)/(x^(p*(1+q)))

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.040, Rules used = {2039} \begin {gather*} \frac {x^{-p (q+1)} \left (a x^n+b x^p\right )^{q+1}}{a (q+1) (n-p)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^(-1 + n - p*(1 + q))*(a*x^n + b*x^p)^q,x]

[Out]

(a*x^n + b*x^p)^(1 + q)/(a*(n - p)*(1 + q)*x^(p*(1 + q)))

Rule 2039

Int[((c_.)*(x_))^(m_.)*((a_.)*(x_)^(j_.) + (b_.)*(x_)^(n_.))^(p_), x_Symbol] :> Simp[(-c^(j - 1))*(c*x)^(m - j
 + 1)*((a*x^j + b*x^n)^(p + 1)/(a*(n - j)*(p + 1))), x] /; FreeQ[{a, b, c, j, m, n, p}, x] &&  !IntegerQ[p] &&
 NeQ[n, j] && EqQ[m + n*p + n - j + 1, 0] && (IntegerQ[j] || GtQ[c, 0])

Rubi steps

\begin {align*} \int x^{-1+n-p (1+q)} \left (a x^n+b x^p\right )^q \, dx &=\frac {x^{-p (1+q)} \left (a x^n+b x^p\right )^{1+q}}{a (n-p) (1+q)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.09, size = 40, normalized size = 1.03 \begin {gather*} -\frac {x^{-p (1+q)} \left (a x^n+b x^p\right )^{1+q}}{a (-n+p) (1+q)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^(-1 + n - p*(1 + q))*(a*x^n + b*x^p)^q,x]

[Out]

-((a*x^n + b*x^p)^(1 + q)/(a*(-n + p)*(1 + q)*x^(p*(1 + q))))

________________________________________________________________________________________

Maple [F]
time = 0.19, size = 0, normalized size = 0.00 \[\int x^{-1+n -p \left (q +1\right )} \left (a \,x^{n}+b \,x^{p}\right )^{q}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(-1+n-p*(q+1))*(a*x^n+b*x^p)^q,x)

[Out]

int(x^(-1+n-p*(q+1))*(a*x^n+b*x^p)^q,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n-p*(1+q))*(a*x^n+b*x^p)^q,x, algorithm="maxima")

[Out]

integrate((a*x^n + b*x^p)^q*x^(-p*(q + 1) + n - 1), x)

________________________________________________________________________________________

Fricas [A]
time = 2.38, size = 76, normalized size = 1.95 \begin {gather*} \frac {{\left (a x x^{-p q + n - p - 1} x^{n} + b x x^{-p q + n - p - 1} x^{p}\right )} {\left (a x^{n} + b x^{p}\right )}^{q}}{{\left (a n - a p + {\left (a n - a p\right )} q\right )} x^{n}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n-p*(1+q))*(a*x^n+b*x^p)^q,x, algorithm="fricas")

[Out]

(a*x*x^(-p*q + n - p - 1)*x^n + b*x*x^(-p*q + n - p - 1)*x^p)*(a*x^n + b*x^p)^q/((a*n - a*p + (a*n - a*p)*q)*x
^n)

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(-1+n-p*(1+q))*(a*x**n+b*x**p)**q,x)

[Out]

Exception raised: SystemError >> excessive stack use: stack is 6438 deep

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n-p*(1+q))*(a*x^n+b*x^p)^q,x, algorithm="giac")

[Out]

integrate((a*x^n + b*x^p)^q*x^(-p*(q + 1) + n - 1), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int x^{n-p\,\left (q+1\right )-1}\,{\left (a\,x^n+b\,x^p\right )}^q \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(n - p*(q + 1) - 1)*(a*x^n + b*x^p)^q,x)

[Out]

int(x^(n - p*(q + 1) - 1)*(a*x^n + b*x^p)^q, x)

________________________________________________________________________________________